const configs = {
    development: {
        server: {
            host: 'localhost',
            port: 8888
        },
        cubeServer: {
            host: 'localhost',
            port: 13998
        }
    },
    test: {
        server: {
            host: 'localhost',
            port: 8888
        },
        cubeServer: {
            host: 'localhost',
            port: 13998
        }
    },
    production: {
        server: {
            host: 'localhost',
            port: 8888
        },
        cubeServer: {
            host: 'localhost',
            port: 13999
        }
    },
}

type configs = typeof configs;
type configKeys = keyof configs;

const NODE_ENV = process.env.NODE_ENV as configKeys || 'development';

export default configs[NODE_ENV];